import Vue from 'vue'
import {
  Button,
  Popup,
  Dialog,
  Toast,
  RadioGroup,
  Radio,
  Checkbox,
  CheckboxGroup,
  DatetimePicker,
  Icon,
  Search,
  Switch,
  Field,
  CellGroup,
  Cell,
  SwitchCell,
  Tab,
  Tabs,
  DropdownMenu,
  DropdownItem,
  Circle,
  Collapse,
  CollapseItem,
  List,
  Area,GoodsAction, GoodsActionIcon, GoodsActionButton,
  IndexBar, IndexAnchor, Tag, Image as VanImage
} from 'vant'
Vue.use(Button).use(Popup).use(Dialog).use(Toast).use(Checkbox).use(CheckboxGroup).use(SwitchCell).use(DropdownMenu).use(DropdownItem)
Vue.use(DatetimePicker).use(Icon).use(Search).use(RadioGroup).use(Radio).use(Switch).use(Field).use(CellGroup).use(Cell)
Vue.use(Tab).use(Tabs).use(Circle).use(Collapse).use(CollapseItem).use(List).use(Area).use(GoodsAction).use(GoodsActionButton).use(GoodsActionIcon)
Vue.use(IndexBar).use(IndexAnchor).use(Tag).use(VanImage)
/**
 * 修改默认配置，对所有 Toast 生效
 */
Toast.setDefaultOptions({
  duration: 1500
})
Dialog.setDefaultOptions({
  confirmButtonColor:'#EA3424'
})
